Results 1 to 2 of 2

Thread: QwtSamplingThread

  1. #1
    Join Date
    Apr 2011
    Location
    Macerata, Italy
    Posts
    13
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QwtSamplingThread

    Hello everybody,

    I've just a qusestion regarding Qthread in particular QwtSamplingThread

    Is it possible to instantiate a class ihnerited from QwtSamplingThread and to start it (the created object) in unother class (let's say mainwindow)??
    or is possible to do this only to the program's main file?


    I've tried to implement the first solution but the compiler says me i've re-defined the Samplingthread class, the second solution instead works properly.

    Thanks in advance for any suggestion
    Andrea

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QwtSamplingThread

    I've tried to implement the first solution but the compiler says me i've re-defined the Samplingthread class
    Show your code.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.