Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem in setting tab focus with hyperlink?
Forum Updated to NodeBB v4.3 + New Features

Problem in setting tab focus with hyperlink?

Scheduled Pinned Locked Moved General and Desktop
13 Posts 2 Posters 4.7k Views 1 Watching
  • 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 Offline
    P Offline
    pratik041
    wrote on 27 Dec 2011, 04:46 last edited by
    #1

    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
    0
    • E Offline
      E Offline
      Eddy
      wrote on 27 Dec 2011, 08:19 last edited by
      #2

      Could you show us an image of what you get?

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pratik041
        wrote on 27 Dec 2011, 08:44 last edited by
        #3

        [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
        0
        • E Offline
          E Offline
          Eddy
          wrote on 27 Dec 2011, 08:57 last edited by
          #4

          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
          0
          • P Offline
            P Offline
            pratik041
            wrote on 27 Dec 2011, 09:15 last edited by
            #5

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

            Pratik Agrawal

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pratik041
              wrote on 27 Dec 2011, 09:46 last edited by
              #6

              [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
              0
              • E Offline
                E Offline
                Eddy
                wrote on 27 Dec 2011, 10:44 last edited by
                #7

                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
                0
                • P Offline
                  P Offline
                  pratik041
                  wrote on 27 Dec 2011, 10:55 last edited by
                  #8

                  [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
                  0
                  • E Offline
                    E Offline
                    Eddy
                    wrote on 27 Dec 2011, 11:00 last edited by
                    #9

                    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
                    0
                    • P Offline
                      P Offline
                      pratik041
                      wrote on 27 Dec 2011, 11:17 last edited by
                      #10

                      [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
                      0
                      • E Offline
                        E Offline
                        Eddy
                        wrote on 27 Dec 2011, 11:29 last edited by
                        #11

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

                        Qt Certified Specialist
                        www.edalsolutions.be

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          pratik041
                          wrote on 27 Dec 2011, 11:48 last edited by
                          #12

                          [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
                          0
                          • P Offline
                            P Offline
                            pratik041
                            wrote on 28 Dec 2011, 05:26 last edited by
                            #13

                            [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
                            0

                            1/13

                            27 Dec 2011, 04:46

                            • Login

                            • Login or register to search.
                            1 out of 13
                            • First post
                              1/13
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved