Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.0k Posts
  • 0 Votes
    5 Posts
    3k Views
    C
    Yep QGraphicsView worked great. Thanks guys.
  • Mac application menu submenu / ApplicationSpecificRole

    5
    0 Votes
    5 Posts
    4k Views
    C
    Thanks for that. I think you're right. I kind of expected it, but I had to try... had to make sure I didn't overlooked something :) One option is to change it in the source to do what you say, which sounds like a good idea (QAction with submenu) but in the meantime I'll stick my submenu inside the "File" menu, which is not great but in our case it's "OK". Cheers!
  • Connecting to a MySQL database using ODBC

    3
    0 Votes
    3 Posts
    15k Views
    J
    Now it works without change any line in code. The only thing I had to do was to configura a DSN called as the database. Thanks a lot.
  • Object-Oriented Database (OODBMS)

    3
    0 Votes
    3 Posts
    5k Views
    T
    Hi, thanks for your post... I also hope for this innovation in the data layer of Qt. I've been a long while without writing any desktop software but I've always seen Qt as the better choice for when it's time to resume Desktop. The only issue is the data layer... If there will be a place for feedback or testing when the project of new data layer begins, it will be appreciated.
  • Qt Designer Plugin, Property Editor in initialize() returns null

    2
    0 Votes
    2 Posts
    2k Views
    B
    Or ask it in another way: How is it possible to access the property editor in my Qt Designer custom widget plugin?
  • How to get DDE data?

    8
    0 Votes
    8 Posts
    6k Views
    G
    If the server always send data to excel, you can't. its a point to point connection. the only thing would be a man in the middle attack, which is not what you want, I'm pretty sure :-) QAxObject is COM, not DDE. The DDE sink is Excel, not your application. Try to connect to the server app via DDE if that is possible, otherwise I have no idea how to intercept events from DDE.
  • NoSQL Databases

    Locked
    4
    0 Votes
    4 Posts
    9k Views
    G
    Closed. Follow ups in "this thread":http://developer.qt.nokia.com/forums/viewthread/3852/ please.
  • QFileDialog and concurrent access to QDir::currentDir()

    7
    0 Votes
    7 Posts
    6k Views
    D
    The simplest way would be using the QDir::currentDirectory() in second thread and there after not using the QDir::currentDirectory() method at all. You can also use the QDir::temp() to temporarily save the files.
  • 0 Votes
    6 Posts
    7k Views
    D
    Another simple way could be catch the signal of your compound widget QLineEdit which is a child of QWidget on user update finished and in that slot, you can call commitData(). Qt now must call setModelData() function.
  • Disable Slider Click

    7
    0 Votes
    7 Posts
    8k Views
    G
    I think you have to subclass it and overwrite mouseEvents. Have a look at the Qt sources, afaik the slider thumb is only painted and no real object. look at the implementation of QSlider and see what they have done, then change yours according to it.
  • QTreeView & mapToGlobal(...): Is this considered a bug?

    4
    1 Votes
    4 Posts
    5k Views
    L
    Gerolf, nail on the head! Thanks for that, seems to have been a simple oversight, I'll keep that in mind for the future.
  • Clicked() signal triggered by return key when a spin box has focus

    3
    0 Votes
    3 Posts
    4k Views
    C
    I had the button set to autoDefault = true. I see what you mean, probably should have read the documentation more closely. All sorted now, many thanks.
  • Downloading Image File

    4
    0 Votes
    4 Posts
    4k Views
    D
    It's possible that no error is returned if a redirection occurred. Try to check content of bytes (qDebug() << bytes) or try to look for a redirection: @QString forwardedUrl; forwardedUrl= reply->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl().toString();@
  • QFileDialog on network drives

    3
    0 Votes
    3 Posts
    4k Views
    D
    Please post the answer as well if you get any:)
  • Error when copiling vlc-1.1.7

    3
    0 Votes
    3 Posts
    2k Views
    A
    Ok.Thanks
  • UDP Unicast

    4
    0 Votes
    4 Posts
    5k Views
    G
    I never worked with UDP sockets, but it looks quite ok for me with an exception to the sendDatagram() method. The host address and port used there is that of the host you are sending to (the "remote" host); you give the local address and probably send to yourself :-)
  • [Solved]QString input using argv

    4
    0 Votes
    4 Posts
    9k Views
    A
    Than you :)
  • Qt + VTK on Mac OS X 10.6: errors linking projects

    6
    0 Votes
    6 Posts
    5k Views
    G
    Ah, sorry. I overlooked the not. Can you switch to the compiler output tab of Creator. There it should mention what is missing, as it is a linker error and it most likely cannot resolve a symbol.
  • Saving Text and Images as a file

    2
    0 Votes
    2 Posts
    2k Views
    G
    QTextEdit can handle plaint text or HTML text for reading. There is no support for reading ODF files or other formats.
  • QgraphicsScene problem

    9
    0 Votes
    9 Posts
    5k Views
    G
    [quote author="zgulser" date="1297759295"]view->setParent(this)[/quote] Better set the parent in the constructor call: @ QGraphicsView view(&scene, parentPointer); // parentPointer could be this (if it's QObject based) // or any other QObject that makes sense for your app @ All QObject based classes take a parent pointer as an optional argument.