Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Stretchable QToolBar

    13
    0 Votes
    13 Posts
    13k Views
    Y
    I was solve this problem in my app by another way. I removed border in style sheet and handle context menu requests for both tool bar in one point. But would not be bad to see correct handling of QToolBar::sizePolicy by framework in next release. Anyway thanks for your help.
  • 0 Votes
    3 Posts
    7k Views
    2
    oh. thanks raul. It won't be more than 1 simultaneous request for every QNetworkAccessManager object. I thought that is was limited to 6 simultaneous requests/application . Thanks
  • Labeled menu separators

    4
    0 Votes
    4 Posts
    4k Views
    EddyE
    I tried some stylesheet hacks without success. IMO your best option is to look into the Cleanlooks style and see how they do it.
  • QTcpServer question

    2
    0 Votes
    2 Posts
    2k Views
    D
    Hm, so you need "this signal":http://doc.qt.nokia.com/4.7/qabstractsocket.html#stateChanged ? QTcpServer is not relevant here, all that its do is initializing connection, not handling it all lifetime.
  • [SOLVED] saving the result of a check box

    16
    0 Votes
    16 Posts
    8k Views
    K
    [quote author="Volker" date="1312543101"]Use "ui->checkBox" directly. There's no need to store the pointe in another variable.[/quote] ok I did. thank you
  • [SOLVED] save and restore window / dialog positions

    13
    0 Votes
    13 Posts
    19k Views
    K
    thank you redkite. i marked this topic as solved.
  • [Solved] How to make two QDockWidgets in Tab style with coding

    3
    0 Votes
    3 Posts
    5k Views
    D
    void QMainWindow::tabifyDockWidget(QDockWidget *first, QDockWidget *second)
  • [SOLVED]Localizing resources

    6
    0 Votes
    6 Posts
    3k Views
    D
    I see guys, I think Eddy's answer suits better to my need :) Thank you very much again :)
  • Segmentation fault, SIGSEGV

    6
    0 Votes
    6 Posts
    4k Views
    G
    Somehwere further down, the backtrace of the segfault should show you the line in your code that triggered the error.
  • What's the differences between Qt and .Net ?

    4
    0 Votes
    4 Posts
    12k Views
    R
    thank you for your answers. :)
  • [SOLVED]Help on QDialog..

    5
    0 Votes
    5 Posts
    2k Views
    M
    Its working now..after made the necessary changes... thanks Peppe @ //mainwindow.cpp QDialog *dlg = new QDialog; Ui::TestDlg ui; ui.setupUi(dlg); dlg->show(); @
  • Sequential animations seem to start early

    4
    0 Votes
    4 Posts
    2k Views
    M
    Just as a test, have you tried using longer durations (say 250ms each) for each of the animations? Starting with larger numbers then reducing the duration down may give some insight to the operation of the sequential animation and how its interacting with the individual animations. There may be a floor value where things don't behave quite right because of the resolution of the system timers.
  • [Solved] Embedding an existing GLWidget into a QML component

    9
    0 Votes
    9 Posts
    3k Views
    B
    Yes, the GL code was wrong. It was clearing the buffer and it was assuming a different coordinate system. I removed the calls to glClear and glIdentity and changed the vertices.
  • QToolTip

    5
    0 Votes
    5 Posts
    5k Views
    R
    [quote author="chernetsov0" date="1312173033"]Where do you put this action? It's not enough code to get the idea why tooltip is not popping. But maybe... [quote] Note that by default tooltips are only shown for widgets that are children of the active window. You can change this behavior by setting the attribute Qt::WA_AlwaysShowToolTips on the window, not on the widget with the tooltip. [/quote] [/quote] Sorry, tried setAttribute(Qt::WA_AlwaysShowToolTips); didn't work, and as for window, what do you mean? I normally just have to use set, with no window name, if anything, it'd be AdvancedTextEditor..
  • QWidget window fails to open when "SetParent" is not null

    4
    0 Votes
    4 Posts
    4k Views
    G
    The usual way is to pass the parent widget in the constructor: @ // change your constructor declaration to public: mainWindow(QWidget *parent = 0); // change your constructor defintion to mainWindow::mainWindow(QWidget *parent) : QWidget(parent) { //.... } // and construct your object this way: cityDialogWindow = new mainWindow(this); @
  • 0 Votes
    2 Posts
    2k Views
    B
    Turns out I needed to make another call: @ _view->activateWindow(); _view->setFocus(); @
  • Is it possible to create a gif file, or better, animated gif file in Qt?

    7
    0 Votes
    7 Posts
    12k Views
    P
    Eddy, animation framework is for creating animated GUI. I do not need that. I need the following. Say, I have a set of image files (for example, 100 of them) representing sequential frames. I want to make an animated file from those frames. There are a few standard options, including animated gif, AVI, mpg, etc. Can Qt help me in doing that? If Qt cannot help, then are there any other options which I could use to make my code to produce an animated file? Animated gif is one of the most widely used standards, and, by the way, Qt can read it. It would be nice, for example, if QMovie could save frames in animated gif, AVI or any other standard format. I just wonder maybe someone already tried to produce a file in a standard animated format?
  • Run executes 4 terminals

    8
    0 Votes
    8 Posts
    3k Views
    G
    That's correct, but you can't use "cin" command's because it only supports output and no input. That's the whole problem otherwise I wouldn't need to do it this way haha. Best regards
  • Mouse Click in QCoreApplication

    2
    0 Votes
    2 Posts
    2k Views
    L
    I don't think Qt has any such functionality. You'll have to use a different library to find the mouse position in a console app.
  • [solved] How to make a code to wait while a file is written on hard drive?

    17
    0 Votes
    17 Posts
    8k Views
    M
    Good deal. Glad to help! Please be sure and edit the title of the thread to add [Solved]. Thanks!