Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Audio/Video Encoding-Decoding

    3
    0 Votes
    3 Posts
    2k Views
    Z
    thank you for response
  • I have a question about ComboBox

    6
    0 Votes
    6 Posts
    2k Views
    A
    That is what I want!! Thanks guys!!
  • Qwt on mac os x

    7
    0 Votes
    7 Posts
    8k Views
    mrdebugM
    Thanks for reply. I think that the program wants the libraries in /usr/local/lib but I want to include them in .app
  • SetVisible(false) causes leaveEvent

    9
    0 Votes
    9 Posts
    3k Views
    B
    I always can suppress things I don't want to have but for me it is logically wrong to get leaveEvents without enterEvents. Additionally emitting "wrong" signals can be avoided. I filed a bug report. Maybe there is a good explanation for this behaviour I cannot see at the moment.
  • [Solved] drawing sympols

    5
    0 Votes
    5 Posts
    2k Views
    M
    bq. Try to find a way to add a [Solved] tag to the title :) For the record, you can do that by editing your initial post and modifying the thread title.
  • Popup Message

    4
    0 Votes
    4 Posts
    3k Views
    M
    You can create a frameless QWidget and show it yourself. A quick search should point you in the right direction.
  • 0 Votes
    2 Posts
    901 Views
    JeroentjehomeJ
    Not really sure what you want to achieve? Think you need to write your own dialog is you want to combine the get file and get directory standard dialogs. greetz
  • 0 Votes
    7 Posts
    7k Views
    F
    Thanks for the tip anyway! If I get some of that happening, I'll post here.
  • Image rotation causes distortion

    7
    0 Votes
    7 Posts
    5k Views
    Q
    That's correct. My bad. I'll try your code right now. Thanks for both of you.
  • Making Splash Screen in QT Designer?

    2
    0 Votes
    2 Posts
    2k Views
    JeroentjehomeJ
    I don't believe the designer does handle a splashscreen widget. If you really need a custom splashscreen you might need to inherit QSplashScreen and do it your self. Otherwise you can read the docs about splashscreen, add the picture and text and have fun. Greetz
  • Treeview qml

    2
    0 Votes
    2 Posts
    2k Views
    sierdzioS
    Tree models/ views don't work in QML. You have to either redesign your app, or try implementing your own view that would accept it. Search this forum for "treeview qml", this subject has been discussed many times here.
  • How could I handle gray bitmap raw data? Could you help me please?

    3
    0 Votes
    3 Posts
    3k Views
    A
    Thank you!!
  • 0 Votes
    5 Posts
    4k Views
    F
    I once got some issues very similar as this. I adjusted the header files including sequence and before including Qt header files I #undef all conflicted macro-defines. In my case, the conflicted item is "CursorShape"
  • Receiving QTimer events but no others

    5
    0 Votes
    5 Posts
    2k Views
    M
    I would suggest you wait until it happens once again (but don't terminate the process!) and then you load up a debugger, let it connect to the process and trigger a debug break + stack trace. Then you should see where it is "hanging". You'll need to compile your app with debug symbols to get a meaningful stack trace though...
  • Use classes from a plugin inQT

    2
    0 Votes
    2 Posts
    974 Views
    JeroentjehomeJ
    There are more the one way a library can get published to the users. If you have a .lib file and a .h file include the .h file and your able to use all classes defined in the header file. What usually is a good way to avoid the problems of recursive included is forward declarations, but then you are only able to use pointers to classes. Hope this will give you some more ideas. Maybe some more information about the plugin might help. What kind of files do you have? Greetz
  • How to insert a GraphicsView into QML

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to add file save functionality to a Qt application ?

    4
    0 Votes
    4 Posts
    2k Views
    I
    It's Ok I used XML and it works well :)
  • How to use QTextCursor to highlight a text

    6
    0 Votes
    6 Posts
    4k Views
    R
    So far as I used it, myPosition is just the index of the character in the total string. So if there is an error say 5 characters from the beginning of the string then I'd set myPosition to 4. As for what a block is, I always get the entire text edit text in one highlightBlock() call so I never went into that.
  • 0 Votes
    2 Posts
    993 Views
    M
    That's basically a Tab widget with the tab headers shown on the left (west), rather than on the top (north). Unfortunately, Qt's Tab widget will draw the tab headers vertically when they are moved to the left (west), which is probably not what you want. Maybe you can simply use a QStackedWidget and construct the headers (page/tab selector) yourself, probably with something like a ListView widget...
  • QMutex pointer is misaligned

    9
    0 Votes
    9 Posts
    10k Views
    L
    You've written to a memory region you are not allowed to, most probably due to a buffer underrun or a dangling pointer, which leads to a corrupted MyBuffer and in further consequence QMutex object. It should be actually quite easy to visualize. Place a breakpoint at the QMutexLocker constructor. If the address for <code>&mMutex</code> varies between consecutive calls you've corrupted your memory somewhere. You might be able to trace the problem with some properly placed data breakpoints (for example on <code>*this</code>) or, as mentioned, valgrind it.