Menu

no member named 'recordCount' in 'QtRPT' problem Qt 5.15

2021-06-17
2022-09-26
  • Proton Phoenix

    Proton Phoenix - 2021-06-17

    Hi ~~~ i have a problem i have installed the latest version of QtRPT
    everything works the only problem is no member named 'recordCount' in 'QtRPT' problem Qt 5.15
    is there any kind of solution!
    thanks~~~

     
  • aliks-os

    aliks-os - 2021-06-17

    give me example how do you use recordCount

     
  • Proton Phoenix

    Proton Phoenix - 2021-06-17

    QtRPT *report=new QtRPT(this);
    report->loadReport("C:/QRpt/examples_report/markettest.xml");
    report->recordCount << ui->tableWidget->rowCount();

     
  • Proton Phoenix

    Proton Phoenix - 2021-06-17

     
  • aliks-os

    aliks-os - 2021-06-17

    take a look at exampledlg1.cpp. The QtRPT class has not recordCount

    void ExampleDlg1::setDSInfo(DataSetInfo &dsInfo)
    {
        dsInfo.recordCount = ui->tableWidget->rowCount();
    }
    
     
  • Proton Phoenix

    Proton Phoenix - 2021-06-17


    so i need here to include all the demo's cpp!? because i think it's not included in my project!

     
  • aliks-os

    aliks-os - 2021-06-17

    ???
    exampledlg is just example

     
  • Proton Phoenix

    Proton Phoenix - 2021-06-17

    ah i understand now Thank you so much forthis great helping i will add it to my class and i will tell you what happens

     
  • Proton Phoenix

    Proton Phoenix - 2021-06-17

    it works now bro really thank you so much <3

     
  • ali aydin

    ali aydin - 2022-08-31

    hi,
    so how to use it?

    dsInfo.recordCount = ui->tableWidget->rowCount();
    
     
  • aliks-os

    aliks-os - 2022-08-31
    void ExampleDlg1::setDSInfo(DataSetInfo &dsInfo)
    {
        dsInfo.recordCount = ui->tableWidget->rowCount();
    }
    
     
  • ali aydin

    ali aydin - 2022-08-31

    I don't know where add this code

     
  • aliks-os

    aliks-os - 2022-08-31

    take a look at source of Demo files.
    setDSInfo is a SLOT - you need connect it with appropriate SIGNAL

     
  • ali aydin

    ali aydin - 2022-09-07

    hello,
    is there anybody?

     
  • polpol

    polpol - 2022-09-26

    any hint how to use the Lambda version?

     
  • aliks-os

    aliks-os - 2022-09-26

    see example at above or source code of demo

     

Log in to post a comment.