Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Problem in setting tab focus with hyperlink?

    General and Desktop
    2
    13
    4240
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pratik041 last edited by

      I have created an hyperlink using Qlabel. I am trying to show currently which hyperlink has focus. I have used
      @Qt::LinksAccessibleByKeyboard@ flag. I am getting the visually focus frame but it is not proper. It is covering the half rect of label. Why this type of problem is coming?

      Pratik Agrawal

      1 Reply Last reply Reply Quote 0
      • E
        Eddy last edited by

        Could you show us an image of what you get?

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply Reply Quote 0
        • P
          pratik041 last edited by

          [quote author="Eddy" date="1324973989"]Could you show us an image of what you get?[/quote]

          can you give some link where i can upload?

          Pratik Agrawal

          1 Reply Last reply Reply Quote 0
          • E
            Eddy last edited by

            Of course,
            have a look at the "forum help":http://developer.qt.nokia.com/wiki/ForumHelp#9bd9c32b79efb1b2d5b039e4d48300a9.

            The forum has no means of his own at the moment, just use a link to an external public host.Personally i use dropbox.

            Qt Certified Specialist
            www.edalsolutions.be

            1 Reply Last reply Reply Quote 0
            • P
              pratik041 last edited by

              I think the problem with the setting width i am checking then i will upload the image.

              Pratik Agrawal

              1 Reply Last reply Reply Quote 0
              • P
                pratik041 last edited by

                [quote author="Eddy" date="1324976242"]Of course,
                have a look at the "forum help":http://developer.qt.nokia.com/wiki/ForumHelp#9bd9c32b79efb1b2d5b039e4d48300a9.

                The forum has no means of his own at the moment, just use a link to an external public host.Personally i use dropbox.[/quote]
                Here is the image link
                http://www.imgplace.com/viewimg220/7296/46hyperlink.png
                See the dotted line above the "forgot Password"

                Pratik Agrawal

                1 Reply Last reply Reply Quote 0
                • E
                  Eddy last edited by

                  The link is working, but we need to put in a password because it has restricted access. Is it possible to put it in a public place?

                  Qt Certified Specialist
                  www.edalsolutions.be

                  1 Reply Last reply Reply Quote 0
                  • P
                    pratik041 last edited by

                    [quote author="Eddy" date="1324982697"]The link is working, but we need to put in a password because it has restricted access. Is it possible to put it in a public place?[/quote]

                    no actually the image itself contains a text "password". That is confusing you.Please check it carefully.

                    Pratik Agrawal

                    1 Reply Last reply Reply Quote 0
                    • E
                      Eddy last edited by

                      Ok, you got me there ;)

                      I understand now.
                      What you mean is that you only get half of the dotted border.

                      Is it possible to make a small compilable example that shows the problem? Then we can test it out and if it is a bug it can be used to make a bug report.

                      Qt Certified Specialist
                      www.edalsolutions.be

                      1 Reply Last reply Reply Quote 0
                      • P
                        pratik041 last edited by

                        [quote author="Eddy" date="1324983626"]Ok, you got me there ;)

                        I understand now.
                        What you mean is that you only get half of the dotted border.

                        Is it possible to make a small compilable example that shows the problem? Then we can test it out and if it is a bug it can be used to make a bug report.[/quote]
                        Ya in case of hyperlink text made with Qlabel only this problem is coming. Once you check this i dont know what is the problem in it and one more doubt i have when i am drawing focus rect using the following code in custom button
                        @ QPainter painter(this);
                        QStyleOptionFocusRect option;
                        option.initFrom(this);
                        option.backgroundColor = palette().color(QPalette::Background);
                        style()->drawPrimitive(QStyle::PE_FrameFocusRect, &option, &painter, this);@
                        I am getting focus frame exactly at border. How can i get the focus frame little bit inside (1 or 2 pixels) the button?

                        Pratik Agrawal

                        1 Reply Last reply Reply Quote 0
                        • E
                          Eddy last edited by

                          What style are you using?
                          What OS are you on?

                          Qt Certified Specialist
                          www.edalsolutions.be

                          1 Reply Last reply Reply Quote 0
                          • P
                            pratik041 last edited by

                            [quote author="Eddy" date="1324985364"]What style are you using?
                            What OS are you on?[/quote]
                            What style? means sorry i did'nt get it. I am just painting the button over that i am setting the focus frame. Beside painting i am just using the code posted by me.
                            I am working on window-xp

                            Pratik Agrawal

                            1 Reply Last reply Reply Quote 0
                            • P
                              pratik041 last edited by

                              [quote author="Eddy" date="1324985364"]What style are you using?
                              What OS are you on?[/quote]

                              Did you tested that hyperlink?

                              Pratik Agrawal

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post